{extend name="admin@index_layout"/}
{block name="main"}
<form class="layui-form" method="post">
    <input name="id" type="hidden" value="{$id}">

    <div class="layui-form-item">
        <label class="layui-form-label">销售额（近七天）</label>
        <div class="layui-input-block">
            <input type="Number"
                   lay-verify="required"
                   name="phone"
                   autocomplete="off"
                   placeholder="销售额（近七天）"
                   class="layui-input"
                   readonly="readonly"
                   value="{$day7_amount_count}"
            >
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">总销售额</label>
        <div class="layui-input-block">
            <input
                    lay-verify="required"
                   name="phone"
                   autocomplete="off"
                   placeholder="总销售额"
                   class="layui-input"
                   readonly="readonly"
                    value="{$amount_count}"
            >
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">订单总数量</label>
        <div class="layui-input-block">
            <input
                    lay-verify="required"
                    name="phone"
                    autocomplete="off"
                    placeholder="订单总数量"
                    class="layui-input"
                    readonly="readonly"
                    value="{$order_count}"
            >
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">提现金额</label>
        <div class="layui-input-block">
            <input
                    lay-verify="required"
                    name="phone"
                    autocomplete="off"
                    placeholder="提现金额"
                    class="layui-input"
                    readonly="readonly"
                    value="{$tixian_amount}"
            >
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <a data-open='{:url("fdetail")}?business_id={$business_id}&status=1'
               class="layui-btn layui-btn-xs layui-btn-normal {:$auth->check('business.business/fdetail')?'':'layui-hide'}"
               title="提现记录"
               data-full="true"
            >提现记录</a>
        </div>
    </div>

<!--    <div class="layui-form-item layer-footer">-->
<!--        <div class="layui-input-block">-->
<!--            <button class="layui-btn" lay-submit>提交</button>-->
<!--        </div>-->
<!--    </div>-->
</form>
{/block}
{block name="script"}
<script type="text/javascript">
    layui.use(['yznForm', 'laydate'], function () {
        var yznForm = layui.yznForm,
            laydate = layui.laydate;
        yznForm.bindevent($("form.layui-form"));
        laydate.render({
            elem: '#ID-laydate'
        });
    });
</script>
{/block}